package stardust.product.xspider;


import java.util.List;
import stardust.core.network.protocol.http.HttpRequestMeta;
import stardust.core.network.protocol.http.HttpResponseMeta;


public interface XSpiderCallback
{

  XSpiderURL nextURL();

  void resolve(XSpiderURL url, HttpRequestMeta reqMeta, HttpResponseMeta rspMeta, String encode, String title, String html);

  void saveURL(XSpiderURL from, List<String> url);

  void onError(XSpiderURL url, Throwable e);

}
